<?php $this->load->view('header_view')?>	
    
    <div id="main">
		<?php echo form_open_multipart($this->uri->uri_string(),array('id'=>'f_register'));?>
		<?php echo validation_errors();?>
		<table>
			<tr>
				<td><?php echo $this->lang->line('firstname');?></td>
				<td><input type="text" id="tf_firstname" name="tf_firstname" value="<?php echo $form_info['firstname']?>"></td>
			</tr>
			<tr>
				<td><?php echo $this->lang->line('lastname');?></td>
				<td><input type="text" id="tf_lastname" name="tf_lastname" value="<?php echo $form_info['lastname']?>"></td>
			</tr>
            <tr>
				<td><?php echo $this->lang->line('birthday');?></td>
				<td><input type="text" id="tf_birthday" name="tf_birthday" value="<?php echo date_show($form_info['birthday'])?>"></td>
			</tr>
            <tr>
				<td><?php echo $this->lang->line('gender')?></td>
				<td>
					<select id="sl_gender" name="sl_gender">
						<?php foreach ($this->lang->line('sl_gender') as $key => $value) {
							echo '<option value="'.$key.'" '.(($form_info['gender']==$key)?'selected':'').'>'.$value.'</option>';
						}?>
					</select>
				</td>
			</tr>
            <tr>
				<td><?php echo $this->lang->line('country')?></td>
				<td>
					<select id="sl_country_id" name="sl_country_id">
						<option value="0">--<?php echo $this->lang->line('choose_country')?>--</option>
                        <?php 
							foreach ($country_info as $row) {
							echo '<option value="'.$row['id'].'" '.(($row['id']==$form_info['country_id'])?"selected":"").'>'.$row['name'].'</option>';
						}
						?>
					</select>
				</td>
			</tr>
            <tr>
				<td><?php echo $this->lang->line('city')?></td>
				<td>
					<select id="sl_city_id" name="sl_city_id">
						<option value="0">--<?php echo $this->lang->line('choose_city')?>--</option>
                        <?php 
						foreach ($city_info as $row) {
							echo '<option value="'.$row['id'].'" '.(($row['id']==$form_info['city_id'])?"selected":"").'>'.$row['name'].'</option>';
						}
						?>
					</select>
				</td>
            </tr>
            <tr>
				<td><?php echo $this->lang->line('district')?></td>
				<td>
					<select id="sl_district_id" name="sl_district_id">
						<option value="0">--<?php echo $this->lang->line('choose_district')?>--</option>
						<?php 
						foreach ($district_info as $row) {
							echo '<option value="'.$row['id'].'" '.(($row['id']==$form_info['district_id'])?"selected":"").'>'.$row['name'].'</option>';
						}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td><?php echo $this->lang->line('display_image');?></td>
				<td><input type="file" id="f_display_image" name="f_display_image" value=""></td>
			</tr>
            <tr>
				<td><?php echo $this->lang->line('address')?></td>
				<td><input type="text" id="tf_address" name="tf_address" value="<?php echo $form_info['address']?>"></td>
			</tr>
			<tr>
				<td><?php echo $this->lang->line('password');?></td>
				<td><input type="password" id="tf_password" name="tf_password" value=""></td>
			</tr>
			<tr>
				<td><?php echo $this->lang->line('confirm_password');?></td>
				<td><input type="password" id="tf_confirm_password" name="tf_confirm_password" value=""></td>
			</tr>
			<tr>
				<td><?php echo $this->lang->line('phone')?></td>
				<td><input type="text" id="tf_phone" name="tf_phone" value="<?php echo $form_info['phone']?>"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" id="btn_edit" name="btn_edit" value="Edit"></td>
			</tr>	
		</table>
		<?php echo form_close();?>
    </div>
    
<?php $this->load->view('footer_view')?>